# -*- coding: utf-8 -*-

import  wx
import  os
import sys

from gettext import gettext as _

from features.UI.perspective import  baseview

 

class Console(baseview.BaseView):
    def __init__(self,parent):
        baseview.BaseView.__init__(self, parent)
        
        """
        mt = wx.TextCtrl(self, -1,
             u"Console\n",
             style=wx.TE_MULTILINE)
        """
        try:
            mt = wx.TextCtrl(self, -1,
             u"Console\n",
             style=wx.TE_MULTILINE)

            self.setDict("CONSOLE",mt.GetId())
            
            self.console = sys.stdout

            sys.stdout = mt
        except Exception, e:
            print e
        
        mt.SetInsertionPoint(1)   
